home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
CC_C
/
0574.ZIP
/
CLOSE.ASM
< prev
next >
Wrap
Assembly Source File
|
1986-08-30
|
419b
|
30 lines
include compiler.inc
ttl CLOSE, 1.04, 08-30-86, clr
;low-level file closer
dseg
exterr
cseg
procdef close, <<handle, word>>
xor ax,ax
moverr ax
mov bx,handle ;pick up handle
mov ax,3E00h
int 21h ;have DOS close it
jnc ok
moverr ax ;save any error
mov ax,-1
jmp short err ;return error code if error
;
ok:
xor ax,ax ;return NULL if ok
err:
pret
;
pend close
finish